package com.douqu.game.auth.service;

import com.douqu.game.core.database.model.OrderRecordModel;

/**
 * @author: miracle.
 * Description:
 * Date: 2018/5/28 0028 下午 6:18
 * Huan Yu Copyright (c) 2017 All Rights Reserved.
 */
public interface OrderRecordService {

    int createOrder(OrderRecordModel orderRecordModel);

    void updateOrder(OrderRecordModel orderRecordModel, boolean checkHistory);

    int findCount(String ObjectIndex,String tcd);

    Integer getTotalRechargeCount(String objectIndex,
                                  String startTime,
                                  String endTime);

    OrderRecordModel findByOutTradeNo(String outTradeNo);

    OrderRecordModel findByTcd(String tcd);//平台的交易订单号

    OrderRecordModel findNoPayOrder(String playerIndex, int serverId);

}
